package cn.wolfcode.luowowo.itemshop.service;

import cn.wolfcode.luowowo.common.customexception.UserInfoException;
import cn.wolfcode.luowowo.itemshop.domain.ItemShopProp;
import cn.wolfcode.luowowo.itemshop.qo.ShopPropQueryObject;
import cn.wolfcode.luowowo.member.domain.UserInfo;
import com.github.pagehelper.PageInfo;

public interface IUserPropService {
    /**
     *查询指定用户的道具列表
     * @param qo
     * @return
     */
    PageInfo queryByUserId(ShopPropQueryObject qo);

    /**
     * 购买某个道具
     * @param userInfo
     * @param itemShopProp
     * @param token
     */
    void buy(UserInfo userInfo, ItemShopProp itemShopProp, String token) throws UserInfoException;
}
